import axios from 'axios';

// 分组列表
let group_list = (params) => axios.get('/user/user_group/list', { params });

// 删除分组
let group_del = (id, params) => axios.delete(`/user/user_group/del/${id}`, { params });

// 添加/修改分组
let group_set = (data) => axios.post('/user/user_group/save', data);

// 添加/修改分组表单
let form_set = (id, params) => axios.get(`/user/user_group/add/${id}`, { params });

export default {
    group_list,
    group_del,
    group_set,
    form_set,
}